package one.stand.fallback;

import com.jmp.base.dto.ImChatPageRequest;
import com.jmp.base.dto.ImChatPageResponse;
import com.jmp.base.dto.ImRequest;
import com.jmp.base.dto.ImSendRequest;
import com.jmp.feign.ImFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

@Component
public class ImFallback implements ImFeign {
    @Override
    public ResultModel imSend(ImSendRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel imChat(ImRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<ImChatPageResponse> chatPage(ImChatPageRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel imChatContent(ImRequest request) {
        return ResultModel.faultTolerant();
    }
}
